option (dhcpv4-server-policy-config)

Configures raw DHCP options. The DHCP option has to be configured in the DHCP server policy. The options configured in the DHCP pool/DHCP server policy can also be used in static bindings.

Supported on the following devices:

Syntax

option <OPTION-NAME> <0-250> [ascii|hexstring|ip]

Parameters

option <OPTION-NAME> <0-250> [ascii|hexstring|ip]

<OPTION-NAME>

Configures the option name

<0-250>

Configures the DHCP option code from 0 - 250

ascii

Configures the DHCP option as an ASCII string

hexstring

Configures the DHCP option as a hexadecimal string

ip

Configures the DHCP option as an IP address

Usage Guidelines

Defines non-standard DHCP option codes (0-254)

Note

Note

An option name in ASCII format accepts a backslash (\) as an input, but is not displayed in the output. Use the show running-config command to view the output. Use a double backslash to represent a single backslash.

Examples

nx9500-6C8809(config-dhcp-policy-test)#option option1 200 ascii
nx9500-6C8809(config-dhcp-policy-test)#show context
dhcp-server-policy test
 option option1 200 ascii
nx9500-6C8809(config-dhcp-policy-test)#

Related Commands

no (dhcpv4-server-policy-config)

Removes DHCP server options